package impl.search;

import java.util.Map;

public class EntryKV<K, V> implements Map.Entry {
    private K key;
    private V value;
    public EntryKV(K k, V v) {
        key = k;
        value = v;
    }
    public K getKey() {
        return key;
    }
    public V getValue() {
        return value;
    }
    public Object setValue(Object value) {
        final Object aux = this.value;
        this.value = (V)value;
        return aux;
    }
}